<?php 

/**
* 基类
*/
class Controller 
{
	public $data=array();
	public function display($tpl_name='')
	{
		extract($this->data);
		
		if($tpl_name){
			include  VIEW_PATH.'/'.CONTROLLER_NAME.'/'.$tpl_name.'.html';
		}else{
			include  VIEW_PATH.'/'.CONTROLLER_NAME.'/'.ACTION_NAME.'.html';
		}
		
	}

	public function assign($key,$values)
	{
		$this->data[$key]=$values;
	}
}















 ?>